SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].gspRating_INSERT
(
@productId AS int = null,
@commentId AS int = null,
@ratingValue AS int = null,
@createdDate AS datetime = null,
@lastModifiedDate AS datetime = null,
@isDeleted AS bit = null
)
AS

INSERT INTO
  [dbo].[Rating]
(
  [ProductId],
  [CommentId],
  [RatingValue],
  [CreatedDate],
  [LastModifiedDate],
  [IsDeleted]
)
VALUES
(
  @productId,
  @commentId,
  @ratingValue,
  @createdDate,
  @lastModifiedDate,
  @isDeleted
)

SELECT SCOPE_IDENTITY()


GO
